Relation matrix composition in Discrete Mathematics